<?php
header("Content-type:text/html;charset=utf-8");
$name=$_POST["name"];
$pwd=$_POST["pwd"];
$conn = mysql_connect("localhost","root","root");
	mysql_select_db("jmyp");
	$result1 = mysql_query("select * from userstable where user_name = '$name' and user_pwd = '$pwd'",$conn);
	$result_row = mysql_num_rows($result1);
	if($result_row == 1){
		echo "0";
		}
		else{
		echo "1";
		}
	mysql_close($conn);
?>